import Vue from 'vue'
//import 'babel-polyfill'// 兼容ie
// import Cookies from 'js-cookie'
import { host } from '../config/host.url'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss'

import App from './App'
import store from './store'
import router from './router'

import './icons' // icon
import './errorLog' // error log
import './permission' // permission control

import HappyScroll from 'vue-happy-scroll'
import 'vue-happy-scroll/docs/happy-scroll.css'

import Print from '@/utils/print'
// import Print from 'vue-print-nb'

// 图片放大效果
import vueDirectiveImagePreviewer from 'vue-directive-image-previewer'
import 'vue-directive-image-previewer/dist/assets/style.css'
Vue.use(vueDirectiveImagePreviewer)

Vue.use(Element)
Vue.use(HappyScroll)
Vue.use(Print)

Vue.config.productionTip = false
Vue.prototype.HOSTURL = host.url

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
